import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;

/**
 * @ClassName A2
 * @Description
 * @Author Jingxiao.Ye
 * @Date 2021/11/28 下午11:12
 * @Version V1.0
 * @Since JDK 11
 */
public class A2 {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        CompletableFuture<Integer> future = new CompletableFuture<>();
        future.complete(1);
        Integer i = future.get();
        System.out.println(i);
    }
}
